﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL;

namespace EDM
{
   public class AuthorityQuery:IAuthorityShow
    {
        public List<string> Search()
        {



            List<string> authorityList = new List<string>();

            TrainingWorkshopEntities db = new TrainingWorkshopEntities();
            
            authorityList = (from m in db.Authorities select m.AuthorityName).ToList();

            return authorityList;
        }
    }
}
